﻿using System;
using System.Data;

namespace Gencode.Gengui.History
{
	public abstract class HistoryControler
	{

		public string Name 
		{ 
			get; 
			set; 
		}

		DataView data;
		public DataView Data
		{
			get
			{
				if (data == null)
					data = CreateDataVew();
				return data;
			}
			set
			{
				data = value;
			}
		}

		public HistoryControler()
		{
			//Data = CreateDataVew();
		}

		public abstract DataView CreateDataVew();
	}
}
